package com.share.example.stock.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.share.common.common.Page;
import com.share.example.stock.model.db.StockBaseInfo;
import com.share.example.stock.model.rsp.StockBaseInfoPageReq;

import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author author
 * @since 2023-06-10
 */
public interface IStockBaseInfoService extends IService<StockBaseInfo> {
    void resetErrorCount(int init);

    List<StockBaseInfo> downAndUpdateStockInfo(Collection<String> codeList);

    StockBaseInfo getStockCodeMap(String code);

    Map<String, StockBaseInfo> initStockInfo();

    Page pageList(StockBaseInfoPageReq req);

    Set<String> downAllCode();

    List<String> listCodeByBasePullCount();

    List<String> listCodeByDayPullCount();

    Set<String> listAllCode();

    int updateDn(String strDate);

    int isNewCode(String code);
}
